<script setup>
import img1 from '../../assets/banner1.png'
import img2 from '../../assets/banner2.png'
import img3 from '../../assets/banner3.png'
import img4 from '../../assets/banner4.png'
import img4 from '../../assets/banner5.png'
import img6 from '../../assets/banner6.png'
const images = [
  { id: 1, url: img1 },
  { id: 2, url: img2 },
  { id: 3, url: img3 },
  { id: 4, url: img4 },
  { id: 5, url: img5 },
  { id: 6, url: img6 },
]
</script>

<template>
  <div class="banner">
   <el-carousel :interval="4000" type="card" height="200px">
    <el-carousel-item v-for="item in images" :key="item.id">
      <img :src="item.url" style="width: 100%; height: 100%; object-fit: cover" />
    </el-carousel-item>
  </el-carousel>
</div>
</template>

<style scoped>
.banner { 
  margin-top: -20px;
}
.el-carousel__item h3 {
  color: #475669;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
  text-align: center;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
</style>